﻿/**********************************************************************
 * @file   OperSEASubSystem.h
 * @brief  SEA子系统操作器 - 创建，修改SEA子系统的数据
 * @author liuzhonghua (liuzhonghuaszch@163.com)
 * @date   2024-10-23
 *********************************************************************/
#ifndef _OperatorsSEASubSystem_H
#define _OperatorsSEASubSystem_H

#include "FITK_Kernel/FITKCore/FITKActionOperator.h"
#include "FITK_Kernel/FITKCore/FITKOperatorRepo.h"


namespace Acoustics
{
    class FITKAbstractSEASubSys;
    class FITKSEASubSysCavity;
}

namespace ModelOper
{
    /**
     * @brief 子系统创建操作器
     * @author liuzhonghua (liuzhonghuaszch@163.com)
     * @date   2024-10-23
     */
    class OperSEASubSystem :public Core::FITKActionOperator
    {
        Q_OBJECT;
    public:
        /**
         * @brief Construct a new Operators Create SubSystem object
         * @author liuzhonghua (liuzhonghuaszch@163.com)
         * @date   2024-10-23
         */
        explicit OperSEASubSystem() = default;
        /**
         * @brief Destroy the Operators Create SubSystem object
         * @author liuzhonghua (liuzhonghuaszch@163.com)
         * @date   2024-10-23
         */
        virtual ~OperSEASubSystem() = default;
        /**
         * @brief 执行
         * @return true 成功
         * @return false 失败
         * @author liuzhonghua (liuzhonghuaszch@163.com)
         * @date   2024-10-23
         */
        virtual bool execGUI() override;
        /**
         * @brief 执行结果处理
         * @return true 成功
         * @return false 失败
         * @author liuzhonghua (liuzhonghuaszch@163.com)
         * @date   2024-10-23
         */
        virtual bool execProfession() override;

    protected:
        /**
         * @brief    修改SEA的操作
         * @return   void
         * @author   liuzhonghua (liuzhonghuaszch@163.com)
         * @date     2024-11-04
         */
        void reviseSEAOper();
        /**
         * @brief    移除子系统
         * @return   void
         * @author   liuzhonghua (liuzhonghuaszch@163.com)
         * @date     2025-02-28
         */
        void deleteSEAOper();

    };

    // 按钮注册相关操作
    Register2FITKOperatorRepo(actionCreateBeam, OperSEASubSystem);
    Register2FITKOperatorRepo(actionCreateFlatPlate, OperSEASubSystem);
    Register2FITKOperatorRepo(actionCreateSinglyCurvedShell, OperSEASubSystem);
    Register2FITKOperatorRepo(actionCreateDoubleCurvedShell, OperSEASubSystem);
    Register2FITKOperatorRepo(actionCreateCavity, OperSEASubSystem);
    Register2FITKOperatorRepo(actionEditBeam, OperSEASubSystem);
    Register2FITKOperatorRepo(actionEditPlate, OperSEASubSystem);
    Register2FITKOperatorRepo(actionEditCavity, OperSEASubSystem);
    Register2FITKOperatorRepo(actionEditSEASubsystem, OperSEASubSystem);
    Register2FITKOperatorRepo(actionDeleteSEASubsystem, OperSEASubSystem);
}

#endif